'''
Created on Apr 18, 2012

@author: drewski
'''

import Tkinter
import ttk
from Tkinter import Checkbutton

class View(object):
    '''
    classdocs
    '''
    controller = "I'm a dummy controller"
    
    def __init__(self):
        '''
        Constructor
        '''     
        print "initialize controller"

    def create(self):
        window = Tkinter.Tk()
        window.geometry("400x300+200+100")
        
        self.createTabs(window)
        
        window.mainloop()
    
    def createTabs(self, parent):
        tabs = ttk.Notebook(parent)
                
        tabs.add(self.createSourceTab(tabs), text='Source')
        tabs.add(self.createRenameTab(tabs), text='Rename')
        tabs.add(self.createRotateTab(tabs), text='Rotate')
        tabs.add(self.createCropTab(tabs), text='Crop')
        tabs.add(self.createResizeTab(tabs), text='Resize')
        tabs.add(self.createExportTab(tabs), text='Export')
        
        tabs.place(x=0, y=0, width = 400, height = 300)
        
        return tabs
    
    
    def createSourceTab(self, parent):
        tab = ttk.Frame(parent)
        
        dualfolder = Tkinter.IntVar()
        
        dualfolder = Tkinter.Checkbutton(tab, text="Dual Folder Project")
        dualfolder.grid(row=0, sticky=Tkinter.W)
        
        Tkinter.Label(tab, text="Folder 1: ").grid(row=1, column=0, sticky=Tkinter.W)
        
        Tkinter.Label(tab, text="Folder 2: ").grid(row=2, column=0, sticky=Tkinter.W)
        
        return tab
        
    def createRenameTab(self, parent):
        tab = ttk.Frame(parent)
        
        return tab
        
    def createRotateTab(self, parent):
        tab = ttk.Frame(parent)
        
        return tab
        
    def createCropTab(self, parent):
        tab = ttk.Frame(parent)
        
        return tab
        
    def createResizeTab(self, parent):
        tab = ttk.Frame(parent)
        
        return tab
        
    def createExportTab(self, parent):
        tab = ttk.Frame(parent)
        
        return tab
        
        
    